<form class="easyui-form" method="post" type="" id="productAdd" style="padding-left: 20px;">
    <table>
        <tr hidden>
            <th style="width: 100px;">商品ID</th>
            <td>
                <label>
                    <input id="id" name="id" class="easyui-validatebox" style="width: 280px;"/>
                </label>
            </td>
        </tr>
        <tr>
            <th style="width: 100px;">商品名称</th>
            <td>
                <label>
                    <input id="title" name="title" class="easyui-validatebox" style="width: 280px;"
                           data-options="required:true,prompt:'请输入商品名称'"/>
                </label>
            </td>
        </tr>
        <tr>
            <th style="width: 100px;">商品单位</th>
            <td>
                <label>
                    <input id="unit" name="unit" class="easyui-validatebox" style="width: 280px;"
                           data-options="required:true,prompt:'请输入商品单位'"/>
                </label>
            </td>
        </tr>
        <tr>
            <th style="width: 100px;">所属分类</th>
            <td>
                <label for="commtityType">
                    <input id="commtityType" name="commtityType" data-options="prompt:'请选择商品类别'">
                </label>
            </td>
        </tr>
        <tr>
            <th style="width: 100px;">市场价格</th>
            <td>
                <label>
                    <input id="marketPrice" name="marketPrice" class="easyui-validatebox" style="width: 280px;"
                           data-options="required:true,prompt:'请输入商品价格'"/>
                </label>
            </td>
        </tr>
        <tr>
            <th style="width: 100px;">兑换所需积分</th>
            <td>
                <label>
                    <input id="needScore" name="needScore" class="easyui-validatebox" style="width: 280px;"
                           data-options="required:true,prompt:'请输入兑换积分'"/>
                </label>
            </td>
        </tr>
        <tr>
            <th style="width: 100px;">是否为优惠商品</th>
            <td>
                <label>
                    <input id="isDiscount1" name="isDiscount" type="radio" class="easyui-validatebox" checked="checked" value="0">否</input>
                </label>
                <label>
                    <input id="isDiscount2" name="isDiscount" type="radio" class="easyui-validatebox" value="1">是</input>
                </label>
            </td>
        </tr>
        <tr id="disPrice" style="display: none">
            <th style="width: 100px;">优惠价格</th>
            <td>
                <label>
                    <input id="discountPrice" name="discountPrice" class="easyui-validatebox" style="width: 280px;"
                           data-options="required:false,prompt:'请输入优惠价格'"/>
                </label>
            </td>
        </tr>
        <tr id="disScore" style="display: none">
            <th style="width: 100px;">优惠兑换积分</th>
            <td>
                <label>
                    <input id="discountScore" name="discountScore" class="easyui-validatebox" style="width: 280px;"
                           data-options="required:false,prompt:'请输入优惠兑换积分'"/>
                </label>
            </td>
        </tr>
        <tr>
            <th id="commName">商品图片</th>
            <td>
                <label>
                    <input id="attachedFile" name="attachedFile"/>
                </label>
            </td>
        </tr>
        <tr>
            <th>商品说明</th>
            <td>
                <label for="detail" style="text-align: left;width:50px;height:270px">
                    <textarea id="detail" name="detail"></textarea>
                </label>
            </td>
        </tr>
        <!--TODO  文件上传附件的插件使用新的插件，待解决  -->
        <!--<tr>-->
            <!--<th>附件</th>-->
            <!--<td>-->
                <!--<label>-->
                    <!--<input id="attachedFile" name="attachedFile"/>-->
                    <!--&lt;!&ndash;<input  name="attachedFile" type="file" multiple/>&ndash;&gt;-->
                <!--</label>-->
            <!--</td>-->
        <!--</tr>-->
    </table>
</form>
